package com.gxa.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("租户账单实体类")
public class TenantBill {
    //租户名称
    @ApiModelProperty("租户名称")
    private String tenantName;
    //账单类型
    @ApiModelProperty("账单类型")
    private String billType;
    //账单编号
    @ApiModelProperty("账单编号")
    private String billNumber;
    //开始时间
    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date startTime;
    //结束时间
    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;
    //单价
    @ApiModelProperty("单价")
    private double price;
    //使用量
    @ApiModelProperty("使用量")
    private double usage;
    //账单金额
    @ApiModelProperty("账单金额")
    private double billAmount;
    //缴费凭证
    @ApiModelProperty("缴费凭证")
    private String payVoucher;

    public TenantBill() {
    }

    public TenantBill(String tenantName, String billType, String billNumber, Date startTime, Date endTime, double price, double usage, double billAmount, String payVoucher) {
        this.tenantName = tenantName;
        this.billType = billType;
        this.billNumber = billNumber;
        this.startTime = startTime;
        this.endTime = endTime;
        this.price = price;
        this.usage = usage;
        this.billAmount = billAmount;
        this.payVoucher = payVoucher;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }

    public String getBillType() {
        return billType;
    }

    public void setBillType(String billType) {
        this.billType = billType;
    }

    public String getBillNumber() {
        return billNumber;
    }

    public void setBillNumber(String billNumber) {
        this.billNumber = billNumber;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getUsage() {
        return usage;
    }

    public void setUsage(double usage) {
        this.usage = usage;
    }

    public double getBillAmount() {
        return billAmount;
    }

    public void setBillAmount(double billAmount) {
        this.billAmount = billAmount;
    }

    public String getPayVoucher() {
        return payVoucher;
    }

    public void setPayVoucher(String payVoucher) {
        this.payVoucher = payVoucher;
    }
}
